<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets">

<h:head></h:head>
<body>
	<f:view locale="#{language.locale}">
		<center>
			<h:dataTable border="1" value="#{createLeaveRules.rules}" var="r">
				<h:column>
					<f:facet name="header">#{msg['lt']}</f:facet>
				#{r.type}
			</h:column>
				<h:column>
					<f:facet name="header">#{msg['days']}</f:facet>
				#{r.day}
			</h:column>
				<h:column>
					<f:facet name="header">#{msg['action']}</f:facet>
					<h:form>
						<h:commandLink action="#{createLeaveRules.deleteType}"
							value="#{msg['delete']}"
							onclick="if (! confirm('#{eMessage.deleteType}')) return false">
							<f:param name="RTYPE" value="#{r.type}"></f:param>
						</h:commandLink>
					</h:form>
				</h:column>
			</h:dataTable>
		</center>
	</f:view>
</body>
</html>
